package cn.house.common;

import org.springframework.http.HttpStatus;

/**
 * 公共返回数据json
 * 
 * @author 偶尔有点困
 * @date 2018年5月5日
 */
public class PublicResultJosn {

	private Integer code = HttpStatus.OK.value();

	private String message = HttpStatus.OK.getReasonPhrase();

	private Object data;

	public PublicResultJosn() {
	}

	public PublicResultJosn(Integer code, String message, Object data) {
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public PublicResultJosn(Object data) {
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
